<!-- header -->
<div class="container-fluid">
	<div class="row header">
		<div class="logo pull-left"><a href="#">现场规范化标准系统</a></div>
		<div class="navs pull-right">
			<ul>
				<li><i class="fa fa-user-circle"></i>{$user}</li>
				<!-- <li><i class="fa fa-question-circle"></i> 帮助</li> -->
				<a href="{:U('loginout')}"><li><i class="fa fa-power-off"></i> 退出</li></a>
				<a href="javascript:void(0)" onclick="uppwd()"><li><i class="fa fa-unlock"></i> 修改密码</li></a>
			</ul>
		</div>
	</div>
</div>
<!-- end header -->
<!-- mnavs -->
<nav class="navbar navbar-default">
	<div class="container-fluid">
		<!-- Collect the nav links, forms, and other content for toggling -->
		<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
			<ul class="nav navbar-nav">
				<li><a href="index.html">
						  <i class="fa fa-home"></i>&nbsp;首页</a></li>
			   
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-pencil-square"></i>&nbsp;系统管理</a>
					<ul class="dropdown-menu">
						<li><a href="{:U('yhgl')}">用户管理</a></li>
						<li><a href="{:U('sjzd')}">数据字典</a></li>
						<li><a href="{:U('qygl')}">企业管理</a></li>
						<li><a href="{:U('zfgl')}">站房管理</a></li>
					</ul>
				</li>				
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-pencil-square-o"></i>&nbsp;资料管理</a>
					<ul class="dropdown-menu">
						<li><a href="{:U('zfbzh')}">站房标准化</a></li>
						<li><a href="{:U('xczl')}">现场资料</a></li>
						<li><a href="{:U('sbbd')}">设备比对</a></li>
						<li><a href="{:U('pjgh')}">配件更换</a></li>
					</ul>
				</li>				
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-calendar-check-o"></i>&nbsp;质控审核</a>
					<ul class="dropdown-menu">
						<li><a href="{:U('zfbzh_sh')}">站房标准化</a></li>
						<li><a href="{:U('xczl_sh')}">现场资料</a></li>
						<li><a href="{:U('sbbd_sh')}">设备比对</a></li>
						<li><a href="{:U('pjgh_sh')}">配件更换</a></li>
					</ul>
				</li>
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-refresh"></i>&nbsp;退回整改</a>
					<ul class="dropdown-menu">
						<li><a href="{:U('zfbzh_thzg')}">站房标准化</a></li>
						<li><a href="{:U('xczl_thzg')}">现场资料</a></li>
						<li><a href="{:U('sbbd_thzg')}">设备比对</a></li>
						<li><a href="{:U('pjgh_thzg')}">配件更换</a></li>
					</ul>
				</li>
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-flask"></i>&nbsp;药品领取</a>
					<ul class="dropdown-menu">
						<li><a href="{:U('yjff')}">药品分发</a></li>
						<li><a href="{:U('yjyjff')}">药品分发(应急)</a></li>
						<li><a href="{:U('yjcxtj')}">查询统计</a></li>
						<li><a href="{:U('yjqd')}">药剂清单</a></li>
						<li><a href="{:U('lqgl')}">领取管理</a></li>
					</ul>
				</li>	
				<li class="dropdown">
					<a href="{:U('appload')}"  target="_blank"><i class="fa fa-download"></i>&nbsp;APP下载</a>
				</li>				
			</ul>
		</div>
		<!-- /.navbar-collapse -->
	</div>
	<!-- /.container-fluid -->
</nav>
<!-- end mnavs -->
<!-- modals -->
<div id="m" class="easyui-window" title="密码修改" data-options="modal:true,closed:true" style="width:380px;height:300px;padding:15px;display:none;">
		<div class="row">
			<div class="col-md-12">
				<div class="row">
					<div class="col-md-12">
						<input class="easyui-textbox" id="o_pwd" name="o_pwd" type="password" style="width:300px" data-options="label:'旧密码',required:true">
					</div>
					<div class="col-md-12" style="margin-top: 20px;">
						<input class="easyui-textbox" id="n_pwd" name="n_pwd" type="password" style="width:300px" data-options="label:'新密码',required:true">
					</div>
				</div>
				<div class="blank10"></div>
				<div class="blank10"></div>
				<div class="btnin">
					<button class="btn btn-info" id="xgmm">提交</button>&nbsp;
					<button class="btn btn-default" id="quxiao">取消</button>
				</div>
			</div>
		</div>
	</div>
	<!-- /.modal-content -->
	<script>
			function uppwd(){
				$('#m').window('open');
			}
			$('#xgmm').click(function(){
				var o_pwd=$('#o_pwd').textbox('getValue');
				var n_pwd=$('#n_pwd').textbox('getValue');
				var option={
					type: "POST",
					url: "{:U('uppwd')}",
					data: {o_pwd: o_pwd,n_pwd: n_pwd},
					success: function(data) {
						if(data['status']==1){
							window.location.href="{:U('login')}";
						}
						else{
							alert(data['info']);
						}
					}
				};
				$.ajax(option);
			})
		
			$('#quxiao').click(function(){
				$('#o_pwd').textbox('setValue','');
				$('#n_pwd').textbox('setValue','');
			})
		
			$('#dh .dropdown').hover(function(){
				$(this).find('.dropdown-menu').fadeIn();
			},function(){
				$(this).find('.dropdown-menu').fadeOut();
			})
		</script>